package com.es.controller;

import com.es.entity.Teacher;
import com.es.service.TeacherService;

public class TeacherController {
    private TeacherService service;

    public void save(){
        Teacher teacher = new Teacher();
        teacher.setName("张老师");

        service.save(teacher);
    }

    public TeacherService getService() {
        return service;
    }

    public void setService(TeacherService service) {
        this.service = service;
    }
}
